package gui;


import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.border.Border;

public class AgencyView extends JPanel {
	private JPanel buttonPanel, theBorderPanel;
	private ImagePanel agencyPic;
	private JButton readRecord, deleteRecord;
	

	public AgencyView() {
		this.setLayout(new BorderLayout());
		initButtonPanel();
		agencyPic=new ImagePanel("TheAgency1.gif");
		initBorderPanel();
		this.add(agencyPic, BorderLayout.EAST);
		this.add(buttonPanel, BorderLayout.WEST);
		this.add(theBorderPanel, BorderLayout.CENTER);
	}
	private void initBorderPanel() {
		theBorderPanel=new JPanel();
		theBorderPanel.setPreferredSize(new Dimension(10,300));
		theBorderPanel.setBackground(Color.BLACK);
	}


	public void addActionListeners(ActionListener a) {
		readRecord.addActionListener(a);
		deleteRecord.addActionListener(a);
	}

	private void initButtonPanel() {
		buttonPanel = new JPanel();
		readRecord=new JButton("Read Record");
		deleteRecord=new JButton("Delete Record");
		buttonPanel.add(readRecord);
		buttonPanel.add(deleteRecord);
		buttonPanel.setPreferredSize(new Dimension(100, 200));
		buttonPanel.setBackground(Color.BLACK);
	}
}
